﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian25
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class daoza35kv : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public daoza35kv()
        {
            InitializeComponent();
            this.NeedPoint = true;
        }
        private void daoza35kv_Paint(object sender, PaintEventArgs e)
        {
            //daoza = true;
            Pen a = new Pen(Color.Yellow, 1);
            e.Graphics.DrawLine(a, x, 0, x, y * 2f / 3f);
            e.Graphics.DrawLine(a, x * 0.7f, y * 2f / 3f, x * 1.3f, y * 2f / 3f);
            e.Graphics.DrawLine(a, x, y * 1.1f, x, y * 5.2f / 3f);
            e.Graphics.DrawLine(a, x * 0.3f, y * 5.2f / 3f, x * 1.7f, y * 5.2f / 3f);
            e.Graphics.DrawLine(a, x * 0.45f, y * 5.45f / 3f, x * 1.55f, y * 5.45f / 3f);
            e.Graphics.DrawLine(a, x * 0.6f, y * 5.65f / 3f, x * 1.4f, y * 5.65f / 3f);
            if (!daoza)
            {
                Pen v = new Pen(Color.GreenYellow, 1);
                e.Graphics.DrawLine(v, x, y * 1.1f, x * 0.2f, y * 1.8f / 3f);
            }
            else
            {
                e.Graphics.DrawLine(a, x, y * 1.1f, x * 0.7f, y * 1.8f / 3f);
            }

        }

        private void daoza35kv_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();

        }

        private void daoza35kv_Load(object sender, EventArgs e)
        {
            daoza35kv_Resize(sender, e);
        }






    }
}